package com.dkd.quartz.task;

import com.dkd.common.utils.StringUtils;
import com.dkd.manage.task.AutoTask;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 智能调度定时任务
 */
@Component("intelligentTask")
public class IntelligentTask {

    @Autowired
    private AutoTask autoTask;

    public void intelligentSchedulingTask() {
        autoTask.autoCreateTask();
    }

    public void intelligentSchedulingResetTask() {
        autoTask.resetAutoCreateCountAndThreshold();
    }
}
